﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VK.Comm.TransactSql;

namespace VK.Casemeet.Slides
{
    public static class SlideBLL
    {
        public static int GetSlideCount(IList<Condition> conditionArray)
        {
            return SlideDAL.GetSlideCount(conditionArray);
        }

        public static List<SlideEntity> GetSlideList(int startRecordIndex, int endRecordIndex, IList<Condition> conditionArray, string sortField, SortMode sortMode)
        {
            return SlideDAL.GetSlideList(startRecordIndex, endRecordIndex, conditionArray, sortField, sortMode);
        }

        public static List<SlideEntity> GetSlideList(IList<Condition> conditionArray, string sortField, SortMode sortMode)
        {
            return SlideDAL.GetSlideList(conditionArray, sortField, sortMode);
        }

        public static SlideEntity GetSlide(int slideID)
        {
            return SlideDAL.GetSlide(slideID);
        }

        public static int InsertSlide(SlideEntity slide)
        {
            return SlideDAL.InsertSlide(slide);
        }

        public static int UpdateSlide(SlideEntity slide)
        {
            return SlideDAL.UpdateSlide(slide);
        }

        public static int DeleteSlide(int slideID)
        {
            return SlideDAL.DeleteSlide(slideID);
        }

        public static int SetSlideEnable(int slideID)
        {
            return SlideDAL.SetSlideEnable(slideID);
        }

        public static int HitSlide(int slideID)
        {
            return SlideDAL.HitSlide(slideID);
        }
    }
}
